import axios from 'axios';
import MX from '@/utils/myAxios';
const baseUrl = 'http://xawn.f3322.net:8012/menu';
//获取菜单数据
export const getMenuApi = (data) => MX(baseUrl, 'get', data);
//新增菜单
export const addMenuApi = (data) => MX(baseUrl, 'post', data);
//删除菜单
export const deleteMenuApi = (id) => MX(baseUrl + '/' + id, 'delete');
//修改菜单
export const putMenuApi = (data) => MX(baseUrl, 'put', data);
